import 'package:drift/drift.dart';

class User extends Table {
  IntColumn get id => integer().autoIncrement()(); // 主键
  TextColumn get accountAddress => text()(); // 账号地址
  TextColumn get privateKey => text()(); // 私钥 ---需要加密
  TextColumn get mnemonic => text()(); // 私钥 ---需要加密
  TextColumn get timestampMicros => text()(); // 创建时间
  DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)(); // 创建时间
}

// Tables can mix-in common definitions if needed
mixin AutoIncrementingPrimaryKey on Table {
  IntColumn get id => integer().autoIncrement()();
}
